﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UFTConfirm.aspx.cs" Inherits="UFTConfirm"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
    
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="UFTConfirm.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script>

    <script src="js/Ajax.js" type="text/javascript"></script>
	<script src="js/FileUpload.js" type="text/javascript"></script>
    <%--

    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    <!-- TinyMCE -->

    <script src="js/tiny_mce.js" type="text/javascript"></script>

    <!-- /TinyMCE -->--%>
    <link href="UFTConfirm.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
<% Response.Write(GenerateSideMenu()); %>

</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnUFTGuest" runat="server"
    EnableViewState="false">
    <div id="pnlUFTGuestTitle">
    </div>
    <div id="pnl_UFTGuest" runat="server">
            </div>
     <fieldset class="m_fs_border" id="fs_UFTNew">
        <legend>
            <a class="lnk" href="javascript:toggle('UFTNew');">
            Event Details
                </a>
        </legend>
        <dl class="m_fs">
            <div id="div_UFTNew">
            <% 
            if (m_iEventId > 0)
            {
                Response.Write(m_uftData.BuildFieldSet_UFTData());
            }
            %>
            <%--<br />--%> 
            <%--<%if (!bSaved)
              { %>--%>
                <div id="lnkCheckAll" class="lnk" onclick="checkAll();" >check</div>
                &nbsp;
                <div id="lnkUncheckAll" class="lnk" onclick="uncheckAll();" >uncheck</div> 
            <%--<%  } %> --%>           
                <input type="hidden" id="hfSave" />
            <dxwgv:ASPxGridView ID="dgCustomerList" KeyFieldName="T_RELATION_INVITATION_ID" 
                    ClientInstanceName="dgCustomerList_c" runat="server"
                    AutoGenerateColumns="true" Width="100%" Font-Size="Small" 
                    OnCustomCallback="dgCustomerList_CustomCallback">
                    <Styles Cell-HorizontalAlign="Left" Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true" Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True"></Header>
                    <AlternatingRow Enabled="True"></AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller"></Cell>
                    </Styles>
                    <SettingsPager PageSize="10"></SettingsPager>
                    <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true" />
                    <SettingsBehavior AllowSort="true"/>
                    <%--<Templates >
                        <EditForm>
                        Isi Alasan Tidak Hadir: 
                        <input type="text" ID="reasonEditor" value='<%# Eval("ALASAN_TIDAK_HADIR")%>' />
                        <input type="button" class="btn" ID="btnCA" value='SAVE' onclick="DoSaveReason('<%# Eval("T_RELATION_INVITATION_ID")%>');" />
                        <dxwgv:ASPxGridViewTemplateReplacement ID="CancelButton" ReplacementType="EditFormCancelButton"
                                    runat="server" >
                        </dxwgv:ASPxGridViewTemplateReplacement>
                        </EditForm>
                    </Templates>--%>
                    <Columns>
                    <dxwgv:GridViewCommandColumn ShowSelectCheckbox="true" Width="5%" Caption="#">
                    </dxwgv:GridViewCommandColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="T_RELATION_INVITATION_ID" Name="T_RELATION_INVITATION_ID">
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CUSTOMER_ID" Name="CUSTOMER_ID" Caption="CUSTOMER ID" >
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_NAME" Name="COMPANY_NAME" Caption="COMPANY NAME">
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCompanyLinkColumn(Eval("CUSTOMER_ID").ToString(), Eval("COMPANY_NAME").ToString())%>
                        </DataItemTemplate>
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="TOTAL_GUEST" Name="TOTAL_GUEST" Caption="TOTAL GUEST" >
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="STATUS_CONFIRM" Name="STATUS_CONFIRM" Caption="STATUS KONFIRMASI" >
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="ALASAN_TIDAK_HADIR" Name="ALASAN_TIDAK_HADIR" Caption="ALASAN TIDAK HADIR" >
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="#" FieldName="NOT_CONFIRM" Name="NOT_CONFIRM" CellStyle-HorizontalAlign="Center">
                        <DataItemTemplate>
                        <%# UFTManager.GetConfirmColumn(Eval("T_RELATION_INVITATION_ID").ToString(), Eval("STATUS_CONFIRM").ToString())%>
                        </DataItemTemplate>
                        <EditFormSettings Visible="False"/>
                    </dxwgv:GridViewDataTextColumn>
                    <%--<dxwgv:GridViewCommandColumn Name="NOT_CONFIRM" EditButton-Visible="true" EditButton-Text="ALASAN" />--%>
                    <%--<dxwgv:GridViewDataTextColumn FieldName="ALASAN_TIDAK_HADIR" Name="ALASAN_TIDAK_HADIR"
                     Caption="ALASAN TIDAK HADIR" Width="50" Visible = "false">
                        <EditFormSettings Caption="Isi Alasan Reject: " />
                    </dxwgv:GridViewDataTextColumn>--%>
                    </Columns>
                <ClientSideEvents EndCallback="function(s, e) { dgCustomerList_c_CallbackComplete(); }" />  
            </dxwgv:ASPxGridView>
                <%--<%if (!bSaved)
                  { %>--%>
				  <input type="button" id="btnSubmitConfirm" class="btn" value="submit" onclick="DoSubmitConfirm();" 
                style="float: right; margin-left: 5px;" />
               <input type="button" id="btnSave" class="btn" value="save" onclick="DoSave();" 
                style="float: right; margin-left: 5px;" />   
                
                <%--<%} %>--%>
            
            <div id="load" style="float: right; padding-right: 10px;">
            </div>
        </dl> 
        </fieldset>
       
    
    <dxcb:ASPxCallback ID="cbkConfirm" ClientInstanceName="cbkConfirm_c" runat="server" OnCallback="cbkConfirm_Callback">
        <ClientSideEvents CallbackComplete="function(s, e) { cbkConfirm_c_CallbackComplete(e); }" />
    </dxcb:ASPxCallback>
</asp:Content>
